const Router = require('koa-router');
const path = require('path');
const fs = require('fs');

const router = new Router();

router.get('/', async (ctx) => {
  ctx.type = 'html';
  ctx.body = fs.createReadStream(path.join(__dirname, '../public/login.html'));
});

module.exports = router;
